package com.exception;

import com.constant.IErrorCode;

public class AuthenticationException extends RuntimeException{

    private long code;

    private String message;

    public AuthenticationException(IErrorCode iErrorCode, Exception e) {
        super(e);
        this.code = iErrorCode.getCode();
        this.message = iErrorCode.getMessage();
    }

    public AuthenticationException(Exception e) {
        e.printStackTrace();
    }

    public AuthenticationException(String message) {
        super(message);
        this.message = message;
    }
}
